//
//  heatCollectionViewCell.m
//  中关村在线
//
//  Created by hy on 16/1/9.
//  Copyright © 2016年 hongyu. All rights reserved.
//

#import "heatCollectionViewCell.h"

@implementation heatCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatCell];
    }
    return self;
}
- (void)creatCell {
    self.wenziLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_wenziLabel];
    [_wenziLabel release];
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    _wenziLabel.frame = CGRectMake(0, 0, layoutAttributes.frame.size.width, layoutAttributes.frame.size.height - 15);
//    _wenziLabel.backgroundColor = [UIColor whiteColor];
}
- (void)dealloc {
    [_wenziLabel release];
    [super dealloc];
}
@end
